<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>构造函数</title>
</head>
<body>
  <script>
    function Person(uname,age,gender){
    this.uname=uname
    this.age=age
    this.gender=gender
    }
    const p1=new Person("Lele",18,"男")
    const p2=new Person("Xixi",16,"女")
    console.log(p1)
    console.log(p2)
  </script>
</body>
</html>